Immediately exits the session without processing any pending navigation requests.
Parent Type: StoredLearningSession
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public override void Exit () |
| Exception type | Condition |
| InvalidOperationException | Thrown if it is not valid to call this method. Use IsExitValid to anticipate if this exception will be thrown. |
The attempt associated with this session must have started and identified an activity for delivery prior to calling this method.
This method does not save changes that result from exiting the session. The application should call CommitChanges after this method and prior to disposing the object to ensure changes are persisted.
All of the activities of the session will be exited and the session will end. None of the postConditionRules for any activity in the session will be evaluated.
No further navigation can be taken on the session. The caller cannot resume the session it has exited. To allow resuming the session, use the Suspend method instead of Exit.